﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DFGK_WMS.Context.Migrations
{
    public partial class 入库单新增字段 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<decimal>(
                name: "Weight",
                table: "TShippingLockCells",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m);

            migrationBuilder.AddColumn<string>(
                name: "WeightUnitName",
                table: "TShippingLockCells",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ProductionOrderSn",
                table: "TReceivingBills",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "WorkOrderSn",
                table: "TReceivingBills",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "WeightUnitName",
                table: "TReceivingBillDetails",
                type: "nvarchar(max)",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Weight",
                table: "TShippingLockCells");

            migrationBuilder.DropColumn(
                name: "WeightUnitName",
                table: "TShippingLockCells");

            migrationBuilder.DropColumn(
                name: "ProductionOrderSn",
                table: "TReceivingBills");

            migrationBuilder.DropColumn(
                name: "WorkOrderSn",
                table: "TReceivingBills");

            migrationBuilder.DropColumn(
                name: "WeightUnitName",
                table: "TReceivingBillDetails");
        }
    }
}
